export const state = {
	//用户数据
	userInfo: uni.getStorageSync('userInfo') ? uni.getStorageSync('userInfo') : {},
};
export const mutations = {
	//储存用户信息
	setUserInfo(state, data) {
		if (data) {
			state.userInfo = Object.assign({}, state.userInfo, data);
		
			uni.setStorageSync('userInfo', state.userInfo);
		}
	},
	// 退出APP
	emptyUserInfo(state) {
		state.userInfo = {};
		uni.removeStorageSync("userInfo");
	},
};
export const actions = {

};